package com.leyou.sh.item.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leyou.sh.item.dto.SkuDTO;
import com.leyou.sh.item.dto.SpuDetailDTO;
import com.leyou.sh.item.entity.SpuDetail;
import com.leyou.sh.item.mapper.SpuDetailMapper;
import com.leyou.sh.item.service.SpuDetailService;
import org.springframework.stereotype.Service;

/**
 * @author balisong_fcs
 * @date 2020/12/28 22:52
 * @desc
 */
@Service
public class SpuDetailServiceImpl extends ServiceImpl<SpuDetailMapper, SpuDetail> implements SpuDetailService {
    @Override
    public SpuDetailDTO querySpuDetailBySpuid(Long id) {
        SpuDetail spuDetail = this.getById(id);
        return new SpuDetailDTO(this.getById(id));
    }
}
